package com.mysoft.gfyx.clue.backgroundjob;
import com.mysoft.gfyx.clue.service.CustomerService;
import com.mysoft.gfyx.clue.service.OpptysubsTimingJobService;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
/**
 * 商机订阅查询入库定时调度器
 */
public class OpptySubsSearchTimingJobHandler {

    @Resource
    private OpptysubsTimingJobService opptysubsTimingJobService;
    @XxlJob(value="OpptySubsSearchTimingJobHandler", init = "init", destroy = "destroy")
    public void execute() throws Exception {
        opptysubsTimingJobService.opptySubsSearchTimingJobHandlerExec();
        System.out.println("OpptySubsSearchTimingJobHandler-execute");
    }

    public void init() {
        System.out.println("OpptySubsSearchTimingJobHandler-初始化init！");
    }

    public void destroy() {
        System.out.println("OpptySubsSearchTimingJobHandler-destroy……");
    }
}
